<template>
	<!-- 常见问题 -->
	<view class="flex-col page">
		<view class="flex-col group" style="margin-top: 20rpx;">

			<view class="justify-between group_2">
				<uni-collapse accordion style=" line-height: 90rpx; ">
					<view>
						<uni-collapse-item title-border="auto" v-for="(item,i) in datalist" :title="item.processName"
							:key="i">
							<view><text style="margin-left: 30rpx;"
									@click="detail(item.id)">{{item.childProcessName}}</text></view>

						</uni-collapse-item>
					</view>

				</uni-collapse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {

		},
		data() {
			return {
				datalist: ''
			};
		},
		created() {
			this.getlist();
			uni.startPullDownRefresh();
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods: {
			Back() {
				let pageNum = 2
				let pages = getCurrentPages(); // 当前页面
				let beforePage = pages[pages.length - pageNum];
				uni.navigateBack({
					success: function() {
						console.log(beforePage)
						beforePage.$vm.$refs.mine.getinfo();
					}

				})
			},
			detail(id) {
				uni.navigateTo({
					url: 'pages/onSite/mine/problom/problemDetial?questionsId=' + id
				})
			},
			getlist() {
				this.$http('ours.queryQuestions').then(res => {
					console.log(res)
					if (res.code == 200) {
						this.datalist = res.data;

					} else {
						uni.showToast({
							icon: "error",
							title: res.msg
						})
					}
				})
			}
		},
	};
</script>

<style scoped lang="css">
	.back-w {
		display: flex;
		flex-direction: row;
		padding-top: 50rpx;
		/* align-items: center; */
		width: 100vw;
		height: 90rpx;
		background-color: #ffffff;
	}

	.f-w-l {
		display: flex;
		flex-direction: row;
		font-weight: bold;
		margin-left: 33%;
	}

	.group_2 {}

	.image_2 {
		margin-top: 15rpx;
		width: 12rpx;
		height: 22rpx;
	}

	.text_3 {
		color: #191919;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.page {
		background-color: #ffffffff;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.group {
		padding: 0 32rpx 546rpx;
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.group_1 {
		padding: 28rpx 0 42rpx;
		border-bottom: solid 1rpx #eeeeee;
	}

	.text_2 {
		margin-left: 24rpx;
		margin-top: 29rpx;
		align-self: flex-start;
		color: #191919;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.divider {
		margin-top: 42rpx;
		background-color: #eeeeee;
		border-radius: 0.5rpx;
		height: 1rpx;
	}

	.text_1 {
		color: #191919;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.image_1 {
		margin-top: 20rpx;
		width: 22rpx;
		height: 12rpx;
	}
</style>
